package ModelLayer;


/**
 * Write a description of class Kunde here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Kunde
{
    // instance variables - replace the example below with your own
    private String navn;
    private String address;
    private String tlf;
    private int id;
    private double rabat;
    private static int FollowingID = 100000;

    /**
     * Constructor for objects of class Kunde
     */
    public Kunde(String navn, String address, String tlf, double rabat)
    {
        this.navn = navn;
        this.address = address;
        this.tlf = tlf;
        this.rabat = rabat;
        id = FollowingID;
        FollowingID++;
        
    }
    
    public String toString()
    {
        String string;
        string = "navn: " + navn + "addresse: " + address + "tlf: " + tlf + "id: " + id;
        return string;
    }

    public int getID()
    {
        return id;
    }
    
    public String getNavn()
    {
        return navn;
    }
    
    public String getTlf()
    {
        return tlf;
    }
    
    public double getRabat()
    {
        return rabat;
    }
    
    public String getAddress()
    {
        return address;
    }
    
    public void setNavn(String Navn)
    {
        this.navn = Navn;
    }
    
    public void setTlf(String Tlf)
    {
        this.tlf = Tlf;
    }
    
    public void setRabat(double Rabat)
    {
        this.rabat = Rabat;
    }
    
    public void setAddress(String Address)
    {
        this.address = Address;
    }
    
   
}
